import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p001 from './p001';
import set from '@dfeidao/atom-web/local/set';
import fire from '@dfeidao/atom-web/msg/fire';

export default async function a001(fd: IFeidaoAiBrowserComponent, hidden_source_feature_name: string, flag: string) {
	// todo
	const n = fd.data.node.querySelector<HTMLDivElement>('[data-id="add"]');
	n.setAttribute('class', 'bg-black-rgba6 pos-f pos-t0 pos-r0 pos-b0 pos-l0 overflow-a text-c ht100 w100 font12');
	set(fd, 'flag', flag);
	const res = await nodejs('wangju/zj-000007/s001', {

		hidden_source_feature_name: hidden_source_feature_name,

	});
	render(fd, res, p001, 'p001', 'inner');
	fire('zj-000007', 'a004');

}
